<template>
    <h3>事件传参</h3>
    <p @click="getNameHandler(item,$event)" v-for="(item, index) of names" :key="index">Count is: {{ item }}</p>

</template>
<script>
export default{
    data () {
        return {
            names:["demo111","demo222","demo333"]
        }
    },
    methods:{
        getNameHandler(msg,e){
            this.count++;
            console.log(msg);
            console.log(e);
        }
    }
}
</script>